
import javax.swing.JOptionPane;
import java.util.Scanner;
public class Prac_11 {


    public static void main(String[] args)
    {



       String mi=":mmZ\\dxZmx]Zpgy";
        int length=mi.length();
        System.out.println("进行解码时对应的key和解出的码为：");
        for(int key=1;key<=100;key++)
        {
            System.out.print("key="+key+":        ");
            for (int i = 0; i < length; i++)
            {
                char temp = mi.charAt(i);
                if (temp - key<=32)   {     int num=temp-key+127-32 ;      System.out.print((char)num);}
                else    {      int num=temp-key;    System.out.print((char)num);}
            }
            System.out.println();
        }

        if(args!=null && args.length!=0)
        {
            JOptionPane.showMessageDialog(null,"经过解码，当key=88时，解码有意义\n"+"解出为：Attack\u007Fat\u007Fdawn!\n");
        }

       else
       {
           System.out.println("经过解码，当key=88时，解码有意义,为：");
           System.out.println("Attack\u007Fat\u007Fdawn!");

       }


        }



}
